---
id: "pos"
keywords: ["pos"]
name: "__POS__"
summary: "This is the `__POS__` special value."
category: "specialvalues"
---

`__POS__` returns a tuple consisting of `(fileName, lineNumber, columnNumberStart, columnNumberEnd)` corresponding to the location in the file at which you put this very expression.

It basically provides the same information as `__LOC__`, but separated into multiple values.

<CodeTab labels={["ReScript", "JS Output"]}>

```res example
let (fileName, lineNumber, columnNumberStart, columnNumberEnd) = __POS__

fileName->Console.log
lineNumber->Console.log
columnNumberStart->Console.log
columnNumberEnd->Console.log
```

```js
var fileName = "testmodule.res";

console.log(fileName);
console.log(1);
console.log(65);
console.log(72);
```

</CodeTab>
